import {exeControlCommand} from "@/api/setting"
import {CCard} from "@/components/card"
import {IconImg} from "@/components/images"
import {View, Switch, RootPortal, Button, Image} from "@tarojs/components"
import Taro from "@tarojs/taro"
import {useState} from "react"
// import { AtForm, AtSwitch } from 'taro-ui'
// import btnControll from './btnControlls'
import "./btnControlls.scss"

export const ControllBtn: React.FC<{controll: Setting.DevControll}> = ({}): JSX.Element => {
	return (
		<CCard style={{position: "relative"}}>
			<View>111</View>
			{/* {children
				? children
				: [
						<View>
							<IconImg imgName={ControllImgNameMap[controll.controlCode]}></IconImg>
						</View>,
						<View className="hanzi text-14 font-bold mb-2 truncate">
							{controll.funName}
						</View>,
						<View>
							{isSwitchOrBtn
								? oneOrTwoSwitch
									? showOneSwitchFunc()
									: showTwoSwitchFunc()
								: showBtnFunc()}
						</View>
				  ]} */}
		</CCard>
	)
}
